import request from '@/api/request'

// 退单列表
export function findReturnApply(start,limit,data) {
  return request({
    url: `/lejuAdmin/orderReturn/findReturnApply/${start}/${limit}`,
    method: 'post',
    data
  })
}

// 退单明细
export function orderReturn(id) {
  return request({
    url: `/lejuAdmin/orderReturn/${id}`,
    method: 'get',
  })
}

// 拒绝退货
export function rejectApply(id,data) {
    return request({
      url: `/lejuAdmin/orderReturn/rejectApply/${id}`,
      method: 'post',
      data
    })
  }

//   收到退货
  export function receiveProduct(id,data) {
    return request({
      url: `/lejuAdmin/orderReturn/receiveProduct/${id}`,
      method: 'post',
      data
    })
  }

//  agreeApply 同意退货 
  export function agreeApply(id,data) {
    return request({
      url: `/lejuAdmin/orderReturn/agreeApply/${id}`,
      method: 'post',
      data
    })
  }
  

